package ExtendsDemo;

import Demo.Manager;

public class Test01 {
    public static void main(String[] args) {
        Works works1 = new Works("张一","123",4000);
        Works works2 = new Works("张二","123",4000);
        Works works3 = new Works("张三","123",4000);
        Works works4 = new Works("张四","123",4000);
        Works works5 = new Works("张五","123",4000);
        Managers manager1 = new Managers("李四","123",5000,1000);
        Managers manager2 = new Managers("李武","123",4600,2000);

        works1.yearMoney();
        works2.yearMoney();
        works3.yearMoney();
        works4.yearMoney();
        works5.yearMoney();
        manager1.yearMoney();
        manager2.yearMoney();
    }
}
